alarms = {}

local alarmtranslate =	{""}
local alarmenum = 		{"Autofly"}
function AddAlarm( um )
	local answer = um:ReadString()
    if not table.HasValue(alarms,answer) then
		table.insert(alarms,answer)
	end
end 
usermessage.Hook("AddAlarm", AddAlarm)

function RemoveAlarm( um )
	local answer = um:ReadString()
	for k, ent in ipairs( alarms ) do		
		if (ent == answer) then
			table.remove(alarms,k)
		end
	end
end 
usermessage.Hook("RemoveAlarm", RemoveAlarm)

local transparency = 50
local plus = true

function DrawBox() 
 	for k, ent in ipairs( alarms ) do		
		draw.RoundedBox( 8,ScrW()/8*3,(ScrH()/30)*k,ScrW()/8*2,(ScrH()/30 - 8), Color(255,10,10,transparency) ) 
		draw.SimpleText(ent,ScoreboardText,ScrW()/2,(ScrH()/30)*k,Color(255,255,255,255),1,4)
	end
	if plus then 
		transparency = transparency + 5
		if (transparency > 240) then
			plus = false
		end
	else
		transparency = transparency - 5
		if (transparency < 50) then
			plus = true
		end
	end
end 
hook.Add("HUDPaintBackground", "DrawBox", DrawBox);  